package com.example.demo.vo;

public class SaveVO {

    private String in;
    private Json json;

    public SaveVO() {}

    public SaveVO(String in, Json json) {
        this.in = in;
        this.json = json;
    }

    public String getIn() { return this.in; }
    public String getJson() { return this.json.toString(); }

    public void setIn(String in) { this.in = in; }
    public void setJson(Json json) { this.json = json; }

    class Json {
        private String criminals;
        private String ethnicity;
        private String gender;
        private String accusation;
        private String courts;

        public Json() {}
        
        public Json(String criminals, String ethnicity, String gender, String accusation, String courts) {
            this.criminals = criminals;
            this.ethnicity = ethnicity;
            this.gender = gender;
            this.accusation = accusation;
            this.courts = courts;
        }
    
        public String getCriminals() { return this.criminals; }
        public String getEthnicity() { return this.ethnicity; }
        public String getGender() { return this.gender; }
        public String getAccusation() { return this.accusation; }
        public String getCourts() { return this.courts; }

        public void setCriminals(String criminals) { this.criminals = criminals; }
        public void setEthnicity(String ethniciry) { this.ethnicity = ethniciry; }
        public void setGender(String gender) { this.gender = gender; }
        public void setAccusation(String accusation) { this.accusation = accusation; }
        public void setCourts(String courts) { this.courts = courts; }

        @Override
        public String toString() {
            StringBuilder sb = new StringBuilder();
            sb.append("{\"Criminals\":\"")
            .append(criminals)
            .append("\",\"Gender\":\"")
            .append(gender)
            .append("\",\"Ethnicity\":\"")
            .append(ethnicity)
            .append("\",\"Accusation\":\"")
            .append(accusation)
            .append("\",\"Courts\":\"")
            .append(courts)
            .append("\"}");
            return sb.toString();
        }
    }
}
